﻿using MiniFox.Components;
using MiniFox.Platform.Applications.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniFox.Platform.Applications.Providers
{
    /// <summary>
    /// 组织架构管理
    /// </summary>
    [AutoRegister]
    public interface IOrganizationProvider
    {
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        IEnumerable<Dept> GetDepts();
        /// <summary>
        /// 
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        IEnumerable<string> GetUserDepts(string userId);
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        IEnumerable<Organization> GetOrganizations();
        /// <summary>
        /// 
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        IEnumerable<Organization> GetOrganizations(string userId);
    }
}
